<!-- Begin users/profil.users.tpl -->
{titlebar colspan=$nb_perms title=$lg->users}
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" class="contentpane">
{opentable}
<form method="post" action="?module=admin&action=users&subaction=search">

<tr>
<td class="sectiontableentry2" colspan="1" align="center"> {$lg->user}
<td class="sectiontableentry1" colspan="1" align="left"> <input type="text" size="16" name="user" value="{$smarty.post.user}" /></td>
</tr>
<tr>
<td class="sectiontableentry2" colspan="1" align="center"> {$lg->email}
<td class="sectiontableentry1" colspan="1" align="left"> <input type="text" size="16" name="mail" value="{$smarty.post.mail}" /></td>
</tr>
<tr>
<td class="sectiontableentry2" colspan="1" align="center"> {$lg->profile}
<td class="sectiontableentry1" colspan="1" align="left"> <input type="text" size="16" name="profile" value="{$smarty.post.profile}" /></td>
</tr>
<tr>
<td><input type="submit" class="button" value={$lg->search} /></td>
<td></td>
</tr>
</form>
</span>
</td>
</tr>
<tr class="sectiontableheader">
<td align="center" width="1%" >{$lg->ID	}</td>
<td>{$lg->users}</td>
<td>{$lg->email}</td>
<td>{$lg->profile}</td>
<td align="center" width="5%">{$lg->status}</td>
	{foreach from=$t_perms item=s_perms}
		<td align="center" width="5%" style="writing-mode:tb-rl; white-space: nowrap;">{$s_perms.permission}</td>
	{/foreach}
</tr>
{if is_array($t_users)}
{foreach from=$t_users item=user}
<tr class="{rowcolor}">
	<td align="center" width="1%">{$user.userid}</td>
	<td width="20%"><a href="?module=users&action=view&uid={$user.userid}">{$user.username}</a></td>
	<td width="30%">{$user.email}</td>
	<td width="30%">{$user.profile}</td>
	<td align="center" width="5%">
		{if $user.active eq "t"}
			<a href="?module=users&uid={$user.userid}&active=f"><img src="{$smarty.env.imgs.ok}" width="16" height="16" border="0" alt="Active" /></a>
		{/if}
		{if $user.active eq "i"}
			<a href="?module=users&uid={$user.userid}&active=i"><img src="{$smarty.env.imgs.email}" width="16" height="16" border="0" alt="Init" /></a>
		{/if}
	</td>
	{foreach from=$t_perms key=id item=s_perms}
		<td>{$user[$id]}</td>
	{/foreach}
</tr>
{/foreach}
{else}
<tr class="data"><td colspan="6">No users retrieved from database.</td></tr>
{/if}
</table>


<!-- End users/users.tpl -->

